package com.eorchis.module.classplanapply.bean.export;

import java.util.ArrayList;
import java.util.List;

import com.eorchis.module.classplanapply.bean.ClassPlanSignFormatBean;
import com.eorchis.utils.excelutil.export.bo.ExportObject;
import com.eorchis.utils.utils.PropertyUtil;

public class ClassPlanSignExport implements ExportObject {

	private List<Ministrie> ministrieList;//部委列表
	private List<ClassMinistrie> classMinistrieList;//部委班级列表
	private List<ClassPlanSignFormatBean> resutList;//对比结果

	public List<ClassPlanSignFormatBean> getResutList() {
		return resutList;
	}

	public void setResutList(List<ClassPlanSignFormatBean> resutList) {
		this.resutList = resutList;
		//构造一级表头 部委
		if(PropertyUtil.objectNotEmpty(resutList)){
			List<Ministrie> mList = resutList.get(0).getMinistrieList();
			this.ministrieList = mList;
			//构造二级表头 班级
			if(PropertyUtil.objectNotEmpty(mList)){
				for(Ministrie m:mList){
					List<ClassMinistrie> cmList = m.getClassMinistrieList();
					if(this.classMinistrieList==null){
						this.classMinistrieList = new ArrayList<ClassMinistrie>();
					}
					this.classMinistrieList.addAll(cmList);
				}
			}
		}
		
	}

	public List<Ministrie> getMinistrieList() {
		return ministrieList;
	}

	public void setMinistrieList(List<Ministrie> ministrieList) {
		this.ministrieList = ministrieList;
	}

	public List<ClassMinistrie> getClassMinistrieList() {
		return classMinistrieList;
	}

	public void setClassMinistrieList(List<ClassMinistrie> classMinistrieList) {
		this.classMinistrieList = classMinistrieList;
	}
	
}
